package com.space.service;

import com.space.entity.User;
import com.space.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public User getNameById(int id){
        return userMapper.selectById(id);
    }
    public String getName(int id){
        return userMapper.getNamebyId(id);
    }
}
